package com.shrct.businessprocess.product.impl;

import com.shrct.businessprocess.product.RCLogicProduct;
import com.shrct.businessprocess.product.RCLogicProductDAO;
import com.shrct.businessprocess.product.impl.RCLogicProductImpl;
import edu.fudan.mylang.pf.BaseDAOService;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.product.RCLogicProductDAO")
public class RCLogicProductDAOImpl extends BaseDAOService<RCLogicProduct> implements RCLogicProductDAO {
  public RCLogicProduct create(final String projectId, final Procedure1<? super RCLogicProduct> postInit) {RCLogicProduct rCLogicProduct=RCLogicProductImpl.create(projectId,getObjectFactory());
    final Procedure1<RCLogicProduct> _function = new Procedure1<RCLogicProduct>() {
        public void apply(final RCLogicProduct it) {
          postInit.apply(it);
          it.start();
        }
      };
    RCLogicProduct _doubleArrow = ObjectExtensions.<RCLogicProduct>operator_doubleArrow(rCLogicProduct, _function);
    return _doubleArrow;
  }
}
